package com.runfast.waimai.service;

import com.runfast.common.service.IService;
import com.runfast.common.web.entity.Result;
import com.runfast.waimai.dao.model.SysUserToken;
import com.runfast.waimai.dao.model.SysUserTokenExample;


public interface SysUserTokenService extends IService<SysUserToken,Long,SysUserTokenExample> {

    /**
     * 生成token
     * @param userId  用户ID
     */
    Result createToken(long userId, Integer type);

    SysUserToken queryByToken(String token);
}